export default defineAppConfig({
  pages: [
    'pages/home/index',
    'pages/editUser/index',
    'pages/user/index',
    'pages/newOrder/index',
    //'pages/myOrder/index',
    'pages/pay/index',
    //'pages/orderDetail/index',
    'pages/category/index',
    'pages/productDetail/index',
    'pages/collect/index',
    'pages/login/index',
    'pages/hot/index',
  ],
  window: {
    backgroundTextStyle: 'light',
    navigationBarBackgroundColor: '#70DE7B',
    navigationBarTitleText: 'WeChat',
    navigationBarTextStyle: 'white',
    backgroundColor: '#f4f4f4',
  },
  tabBar: {
    color: '#bbbbbb',
    selectedColor: '#04cb00',
    backgroundColor: '#ffffff',
    borderStyle: 'white',
    list: [
      {
        pagePath: 'pages/home/index',
        text: '首页',
        iconPath: 'assets/home.png',
        selectedIconPath: 'assets/homeSelected.png',
      },
      {
        pagePath: 'pages/hot/index',
        text: '热榜',
        iconPath: 'assets/hot.png',
        selectedIconPath: 'assets/hotSelected.png',
      },
      {
        pagePath: 'pages/user/index',
        text: '我的',
        iconPath: 'assets/my.png',
        selectedIconPath: 'assets/mySelected.png',
      },
    ],
  },
  subPackages: [
    {
      root: 'moduleA',
      pages: ['pages/myOrder/index', 'pages/orderDetail/index'],
    },
  ],
})
